<template>
<div>
  <h2>我是哥哥组件，我开的车是{{car}}</h2>
  <button @click="getCar">找了个富婆，给换了个车</button>
</div>
</template>

<script>
export default {
  name: "Brother",
  data(){
    return{
      car:'八手蒙迪欧'
    }
  },
  methods:{
    getCar(){
      this.car = '布加迪Plus'
      this.$bus.$emit('getCar',this.car)
    }
  }
}
</script>

<style scoped>

</style>